using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ibba.agil.core.common;
using ibba.agil.core;
using ibba.agil.manager;

namespace ibba.agil.data
{
    public class tbagi010TipoCamoKey : IDataKey
    {
        public string codTipoCamo { get; set; }
    }

    public class tbagi010TipoCamo_COL : CollectionData<tbagi010TipoCamoKey, tbagi010TipoCamo_ENT>
    {
        private tbagi010TipoCamo_COM _manager;
        private Criteria<CriteriaInfo, object> _pesquisa;
        private tbagi010TipoCamoKey _key;

        public tbagi010TipoCamo_COL()
        {
            _manager = new tbagi010TipoCamo_COM();
        }

        public override List<tbagi010TipoCamo_ENT> Find(tbagi010TipoCamoKey key)
        {
            #region Implementacao do Criterio de Pesquisa

            _pesquisa = new Criteria<CriteriaInfo, object>(new tbagi010TipoCamo_ENT());
                        

            #endregion


            return _manager.Where(CriteriaFind);
        }

        protected override Criteria<CriteriaInfo, object> CriteriaFind()
        {
            return _pesquisa;
        }
    }
}
